package cn.wolfcode.shop.web.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


@Setter@Getter
public class LoginVo {
    @Pattern(regexp = "^1(3|4|5|7|8)\\d{9}$", message = "手机格式不正确")
    private String username;
    @NotNull(message = "密码不能为空")
    private String password;
}
